/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.appleframework;

/**
 *
 * @author zhujg
 */
public class Logger {

  public static org.apache.log4j.Logger log4j;
  
  static {
    log4j = org.apache.log4j.Logger.getLogger("Apple");
  }

  public static void setLevel(String level){
    log4j.setLevel(org.apache.log4j.Level.toLevel(level));
  }

  public static void debug(String message , Object... args){
    log4j.debug(String.format(message, args));
  }

  public static void debug(String message,Throwable t){
    log4j.debug(message, t);
  }
  
}
